package com.eshop.tools.service;

import org.springframework.web.multipart.MultipartFile;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import com.eshop.tools.service.dto.PictureDto;
import java.util.List;
import java.util.Map;
import org.springframework.data.domain.Pageable;
import com.eshop.tools.service.dto.PictureQueryCriteria;
import com.eshop.tools.domain.Picture;
import com.eshop.common.service.BaseService;

public interface PictureService extends BaseService<Picture>
{
    Map<String, Object> queryAll(final PictureQueryCriteria criteria, final Pageable pageable);
    
    List<Picture> queryAll(final PictureQueryCriteria criteria);
    
    void download(final List<PictureDto> all, final HttpServletResponse response) throws IOException;
    
    Picture upload(final MultipartFile file, final String username);
    
    Picture findById(final Long id);
    
    void deleteAll(final Long[] ids);
    
    void synchronize();
}
